package com.yonyou.gmmc.service.shopping.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yonyou.gmmc.common.annotation.OracleDb;
import com.yonyou.gmmc.service.shopping.model.ReceiveAdd;
import com.yonyou.gmmc.service.shopping.model.TmTpReceiveAdd;

import tk.mybatis.mapper.common.Mapper;

@OracleDb
public interface TmTpReceiveAddMapper extends Mapper<TmTpReceiveAdd> {

	//获取收货信息
	List<ReceiveAdd> queryReceiveAdd(String openId);

	//查询是否存在
	TmTpReceiveAdd selectIfExist(TmTpReceiveAdd tmTpReceiveAdd);

	//插入收货地址
	void insertReceiveAdd(TmTpReceiveAdd tmTpReceiveAdd);

	//修改收货地址
	void updateReceiveAdd(TmTpReceiveAdd tmTpReceiveAdd);

	List<ReceiveAdd> selectDefaultName(String openId);

	//查询订单详情收货地址
	List<ReceiveAdd> selectOrderAddress(@Param("thirdOrder")String thirdOrder,@Param("userId") Long userId);
	
	public String selectAddName(@Param("addr") String addr);
}